<?php
class ApiConst
{
    const BACK_SUCCESS = 200;

    const BACK_LOGIN_EMPTY = 201;
    const BACK_LOGIN_ERROR = 202;
    const BACK_NO_LOGIN = 203;
    const BACK_LOGIN_EXPIRE = 204;

    const BACK_EXIST_USER_NANE = 205;
    const BACK_NOT_EXIST_USER_NANE = 206;

    const BACK_NOT_EXIST_PHONE = 207;
    const BACK_NOT_EXIST_INFO = 208;


    const BACK_NOT_EXIST_ROLE = 209;
    const BACK_ROLE_LIMIT = 210;
    const BACK_INFO_RECEUVED = 211;
    const BACK_INFO_LOSE_SELF = 212;
    const BACK_INFO_NO_RECEIVE = 213;
    const BACK_INFO_RECEIVE_LIMIT = 214;
    const BACK_INFO_PHONE_REPEAT = 215;

    const BACK_CODE_ERROR = 500;
    const BACK_PARAM_ERROR = 501;
    const BACK_ROOT_ERROR = 502;

    const BACK_MSG = [
        self::BACK_SUCCESS => 'success',
        self::BACK_LOGIN_EMPTY => '用户名或密码不能为空！',
        self::BACK_LOGIN_ERROR => '用户名或密码错误！',
        self::BACK_NO_LOGIN => '您未登录！',
        self::BACK_LOGIN_EXPIRE => '登录失效！',


        self::BACK_EXIST_USER_NANE => '用户已存在！',
        self::BACK_NOT_EXIST_USER_NANE => '用户不存在！',
        self::BACK_NOT_EXIST_PHONE => '记录不存在！',
        self::BACK_NOT_EXIST_INFO => '数据不存在！',
        self::BACK_NOT_EXIST_ROLE => '没有角色！',
        self::BACK_ROLE_LIMIT => '角色上限！',
        self::BACK_INFO_RECEUVED => '已被领取！',
        self::BACK_INFO_LOSE_SELF => '领取人不是您自己！',
        self::BACK_INFO_NO_RECEIVE => '主管理账号不能领取',
        self::BACK_INFO_RECEIVE_LIMIT => '领取已上限',
        self::BACK_INFO_PHONE_REPEAT => '手机号重复添加！',







        self::BACK_CODE_ERROR => '系统错误！',
        self::BACK_PARAM_ERROR => '参数错误！',
        self::BACK_ROOT_ERROR => '无权限！',
    ];
}
